home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.direct.ca!usenet
- From: etoivane@direct.ca (Ed Toivanen)
- Newsgroups: comp.lang.c
- Subject: Re: Using char array in functions
- Date: 25 Feb 1996 21:26:14 GMT
- Organization: Your Organization
- Distribution: world
- Message-ID: <4gqk5m$jno@aphex.direct.ca>
- References: <20FEB199609155775@sundog.caltech.edu>
- NNTP-Posting-Host: 204.174.243.150
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- In article <20FEB199609155775@sundog.caltech.edu>,
- taylor@sundog.caltech.edu395-3807,MC264-33CALTECHPASADENACA91125 says...
- >
- >I've searched the faq's and postings, but still am looking for a clear
- >explanation on how to use arrays of char strings in functions, especially when
- >I want to have the function modify the array. I find I can't just pass the
- >name of the string as a pointer as I do for single strings.
- ^^^^
-
- As I just learned from my midterm(the hard way, in other words!) you have to
- pass the address of the name of the array if you expext to modify more than a
- copy of the thing.
-
- Ed
-
-
-
-
-